home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_aet_hints.cog < prev    next >
Text File  |  1999-11-15  |  7KB  |  264 lines

  1. # Jones 3D Cog Script
  2. #
  3. # aet_Hints.cog
  4. #
  5. # [TL]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. # ========================================================================================
  9. symbols
  10.     
  11. message        startup
  12. message        entered
  13. message        activated
  14. message        crossed
  15. message        damaged
  16. message        user0
  17. message        user1
  18. message        user2
  19. message        user3
  20. message        user4
  21. message        user5
  22. message        user6
  23.  
  24. thing        player        local
  25.  
  26. thing        hint2        # "Hint1" Bread Crumb(BC) to first passage (green). *entered*
  27. sector        hintsector2    #
  28. int            hint2done=0    local
  29.  
  30. thing        hint4        # "Hint2" Tool from beyond pick up.                 *activated*
  31. thing        tool4        #
  32.  
  33. thing        hint6        # "Hint3" BC to start of RIV passage (blue).        *entered*
  34. sector        hintsector6    #
  35.  
  36. thing        hint8        # "Hint4" RIV POR dilation.                            *damaged*
  37. surface        RIVPORface8                                                     mask=0x408
  38.  
  39. thing        hint10        # "Hint5" BC to end of passage after RIV.            *entered*
  40. sector        hintsector10#
  41.  
  42. thing        hint12        # "Hint6" BC to top of AET tube into Marduk room.    *entered*
  43. sector        hintsector12#
  44.  
  45. thing        hint14        # "Hint7" TEO POR dilation.                            *damaged*
  46. surface        TEOPORface14                                                    mask=0x408
  47.  
  48. thing        hint16        # "Hint8" Mirror pick up.                            *sendmessage(user6)*
  49.  
  50. thing        hint18        # "Hint9" Defeating Marduk the first time.               *sendmessage(user0)*
  51.  
  52. thing        hint20        # "Hint10" Pick up gem.                                *sendmessage(user1)*
  53.  
  54. thing        hint22        # "Hint11" Use gem on button.                        *activated*
  55. thing        button22    #
  56.  
  57. thing        hint24        # "Hint12" Whip Probe.                                *damaged*
  58. thing        probe24        #
  59.  
  60. thing        hint26        # "Hint13" Use whip on "door" probe.                *damaged*
  61. thing        probe26        #
  62.  
  63. thing        hint28        # "Hint14" First bridge probe.                        *damaged*
  64. thing        probe28        #
  65.  
  66. thing        hint30        # "Hint15" First gem.                                *activated*
  67. thing        greengem30    #
  68.  
  69. thing        hint32      # "Hint16" Second probe.                            *damaged*
  70. thing        probe32        #
  71.  
  72. thing        hint34      # "Hint17" Second gem.                                *activated*
  73. thing        bluegem34    #
  74.  
  75. thing        hint36      # "Hint18" Third probe.                                *damaged*
  76. thing        probe36        #
  77.  
  78. thing        hint38      # "Hint19" Third gem.                                *activated*
  79. thing        redgem38    #
  80.  
  81. thing        hint40      # "Hint20" Green gem door.                            *activated*
  82. thing        greendoor40    #
  83.  
  84. thing        hint42      # "Hint21" Green leakage.                            *sendmessage(user3*
  85.  
  86. thing        hint44      # "Hint22" Blue gem door.                            *activated*
  87. thing        bluedoor44    #
  88.  
  89. thing        hint46      # "Hint23" Blue leakage.                            *sendmessage(user4)*
  90.  
  91. thing        hint48      # "Hint24" Red gem door.                            *activated*
  92. thing        reddoor48    #
  93.  
  94. thing        hint50      # "Hint25" Red leakage.                             *sendmessage(user5)*
  95.  
  96. thing        hint52      # "Hint26" Center platform to defeat Mophia.        *sendmessage(user2)*
  97.  
  98. thing        hint54      # "Hint27" Run in to correct BAB POR to escape.        *entered*
  99. sector        hintsector54#
  100.  
  101. thing        hint56      # "Hint28" End of escape at top.                    *entered*
  102. sector        hintsector56#
  103.  
  104. end
  105.  
  106. # ========================================================================================
  107. code
  108.  
  109. startup:
  110.  
  111. player = GetLocalPlayerThing();
  112.  
  113. return;
  114.  
  115. # ........................................................................................
  116. entered:
  117.  
  118. # "Hint1" Bread Crumb(BC) to first passage to tool room (green).
  119. if (GetSenderRef() == hintsector2) 
  120.     {
  121.     hint2done = 1;
  122.     SetHintSolved(hint2);
  123.     }
  124.  
  125. # "Hint3" BC to start of RIV passage to POR (blue).
  126. if ((GetSenderRef() == hintsector6) && (hint2done == 1)) 
  127.     {
  128.     SetHintSolved(hint6);
  129.     }
  130.  
  131. # "Hint5" BC to end of passage after RIV POR leading to boss room.
  132. if (GetSenderRef() == hintsector10) SetHintSolved(hint10);
  133.  
  134. # "Hint6" BC to top of AET tube into Marduk room.
  135. if (GetSenderRef() == hintsector12) SetHintSolved(hint12);
  136.  
  137. # "Hint27" Run into correct BAB POR to escape.
  138. if (GetSenderRef() == hintsector54) SetHintSolved(hint54);
  139.  
  140. # "Hint28" End of escape at top.
  141. if (GetSenderRef() == hintsector56) SetHintSolved(hint56);
  142.  
  143. return;
  144.  
  145. # ........................................................................................
  146. crossed:
  147.  
  148. # "Hint4" RIV POR dilation.                        
  149. if (GetSenderRef() == RIVPORface8) SetHintSolved(hint8);
  150.  
  151. # "Hint7" TEO POR dilation.
  152. if (GetSenderRef() == TEOPORface14) SetHintSolved(hint14);
  153.  
  154. return;
  155.  
  156. # ........................................................................................
  157. activated:
  158.  
  159. # "Hint2" Tool from beyond pick up.
  160. if (GetSenderRef() == tool4) SetHintSolved(hint4);
  161.  
  162. # "Hint11" Use gem on button to lower probe.
  163. if (GetSenderRef() == button22) SetHintSolved(hint22);
  164.  
  165. # "Hint15" First gem pick up (green).
  166. if (GetSenderRef() == greengem30) SetHintSolved(hint30);
  167.  
  168. # "Hint17" Second gem pick up (blue).
  169. if (GetSenderRef() == bluegem34) SetHintSolved(hint34);
  170.  
  171. # "Hint19" Third gem pick up (red).
  172. if (GetSenderRef() == redgem38) SetHintSolved(hint38);
  173.  
  174. # "Hint20" Green gem door open.
  175. if (GetSenderRef() == greendoor40) SetHintSolved(hint40);
  176.  
  177. # "Hint22" Blue gem door open.
  178. if (GetSenderRef() == bluedoor44) SetHintSolved(hint44);
  179.  
  180. # "Hint24" Red gem door open.
  181. if (GetSenderRef() == reddoor48) SetHintSolved(hint48);
  182.  
  183. return;
  184.  
  185. # ........................................................................................
  186. damaged:
  187.  
  188. # "Hint12" Whip probe to charge it.
  189. if ((GetSenderRef() == probe24) && (GetParam(1) == 0x10)) SetHintSolved(hint24);
  190.  
  191. # "Hint13" Use whip on "door" probe to open door.
  192. if ((GetSenderRef() == probe26) && (GetParam(1) == 0x800)) SetHintSolved(hint26);
  193.  
  194. # "Hint14" First bridge probe retraction.
  195. if ((GetSenderRef() == probe28) && (GetParam(1) == 0x800)) SetHintSolved(hint28);
  196.  
  197. # "Hint16" Second bridge probe retraction.
  198. if ((GetSenderRef() == probe32) && (GetParam(1) == 0x800)) SetHintSolved(hint32);
  199.  
  200. # "Hint18" Third bridge probe retraction.
  201. if ((GetSenderRef() == probe36) && (GetParam(1) == 0x800)) SetHintSolved(hint36);
  202.  
  203. return;
  204.  
  205. # ........................................................................................
  206. user0: # This message sent by skitoscene. 
  207.  
  208. # "Hint9" Defeating Marduk the first time.
  209. SetHintSolved(hint18);
  210.  
  211. return;
  212.  
  213. # ........................................................................................
  214. user1: # This message sent by skitoscene. 
  215.  
  216. # "Hint10" Pick up  Marduk gem.
  217. SetHintSolved(hint20);
  218.  
  219. return;
  220.  
  221. # ........................................................................................
  222. user2: # This message sent by rotatecage cog.
  223.  
  224. # "Hint26" Go to center platform to defeat Mophia.
  225. SetHintSolved(hint52);
  226.  
  227. return;
  228.  
  229. # ........................................................................................
  230. user3: # This message sent by enddilator cog.
  231.  
  232. # "Hint21" Green leakage.
  233. SetHintSolved(hint42);
  234.  
  235. return;
  236.  
  237. # ........................................................................................
  238. user4: # This message sent by enddilator cog.
  239.  
  240. # "Hint23" Blue leakage.
  241. SetHintSolved(hint46);
  242.  
  243. return;
  244.  
  245. # ........................................................................................
  246. user5: # This message sent by enddilator cog.
  247.  
  248. # "Hint25" Red leakage.
  249. SetHintSolved(hint50);
  250.  
  251. return;
  252.  
  253. # ........................................................................................
  254. user6: # This message sent by getmirror cog.    
  255.  
  256. # "Hint8" Mirror pick up.
  257. SetHintSolved(hint16);
  258.  
  259. return;
  260.  
  261. # ........................................................................................
  262. end
  263.  
  264.